package jk.fox.registry.discovery;

/**
 * 发现时间对象
 * @author cuichao
 * @Description: DiscoveryEvent
 * @Date: create in 2020/4/18 14:21
 */
public class DiscoveryEvent {

    private String domain;
    private String node;
    private String data;
    private DiscoveryEventType type;

    public DiscoveryEvent() {
        super();
    }


    public DiscoveryEvent(String domain ,String node, String data, DiscoveryEventType type) {
        this.domain = domain;
        this.node = node;
        this.data = data;
        this.type = type;
    }



    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public String getNode() {
        return node;
    }


    public void setNode(String node) {
        this.node = node;
    }


    public String getData() {
        return data;
    }


    public void setData(String data) {
        this.data = data;
    }

    public DiscoveryEventType getType() {
        return type;
    }


    public void setType(DiscoveryEventType type) {
        this.type = type;
    }

    public enum DiscoveryEventType {
        INIT_NODE,
        ADD_NODE,
        UPDATE_NODE,
        REMOVE_NODE;

    }
}
